# Maintainer: Yong-hyu, Ban <yhban@quendi.moe>
# Maintainer: Eon Jeong <administrator@korea.ac.kr>

pkgname=axel
pkgver=2.17.7
pkgrel=1
pkgdesc="Light command line download accelerator for Linux and Unix"
arch=('i686' 'x86_64')
license=('GPL')
url="https://github.com/axel-download-accelerator/axel"
groups=()
depends=('openssl' 'gettext')
makedepends=('openssl-devel' 'gettext-devel')
options=()
source=("https://github.com/axel-download-accelerator/axel/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('ce7bc2204834e408af43a54bc505b8e51fcdf8e8ccb9a9bf6eb81624de8c1495')

prepare() {
  cat /dev/null
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --mandir=/usr/share/man \
    --disable-nls

  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
}
